using System;
using System.Runtime.Serialization;
using Utility.ExceptionHandling;

namespace uk.co.tonyditchfield.tort.exception
{
    /// <summary>
    /// Generic Persistence Exception for all exceptions thrown.
    /// </summary>
    [Serializable()]
    public class PersistenceException : BaseException
    {
        public PersistenceException() { }

        public PersistenceException(string message) 
           : base(message) { }

        public PersistenceException(string message, Exception innerException)
            : base(message, innerException) { }

        public PersistenceException(int message, Exception innerException)
            : base(message, innerException) { }

        protected PersistenceException(SerializationInfo info,
         StreamingContext context)
            : base(info, context) { }
    }
}
